package cn.base.web.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.Duration;


@Component
@Getter
@Setter
@ConfigurationProperties(prefix = "login")
public class LoginProperties {

    /** token过期时间 **/
    private Duration tokenTimeout=Duration.ofMinutes(35);

    /** token刷新间隔 ,使用redis的getAndExpire不需要间隔刷新了 **/
    //private Duration tokenRefreshTime=Duration.ofMinutes(5);

    /** 登录公钥有效期 **/
    private Duration publicKeyTimeout=Duration.ofSeconds(30);


}
